package br.com.absolutech.study.chapter6.pag269;

import java.util.Calendar;
import java.util.Locale;

public class LocaleDemo2 {

	public static void main(String[] args) {

		Calendar c = Calendar.getInstance();
		c.set(2010, 11, 14);

		Locale locBR = new Locale("pt", "BR");
		Locale locDK = new Locale("da", "DK");
		Locale locIT = new Locale("it", "IT");

		System.out.println("def " + locBR.getDisplayCountry());
		System.out.println("loc " + locBR.getDisplayCountry(locBR));

		System.out.println("def " + locDK.getDisplayLanguage());
		System.out.println("loc " + locDK.getDisplayLanguage(locDK));
		System.out.println("D>I " + locDK.getDisplayLanguage(locIT));

	}
}
